﻿package Engine.RMI
{
    import Framework.Serialize.*;

    public class SRMIReturn extends Object
    {
        public var messageId:int;
        public var dispatchStatus:ERMIDispatchStatus;
        public var userKey:int;
        public var routerMap:Array;

        public function SRMIReturn()
        {
            return;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.messageId);
            this.dispatchStatus.__write(param1);
            param1.writeInt(this.userKey);
            SeqRouterMapHelper.write(param1, this.routerMap);
            return;
        }// end function

        public function __read(param1:SerializeStream) : void
        {
            this.messageId = param1.readInt();
            this.dispatchStatus = ERMIDispatchStatus.__read(param1);
            this.userKey = param1.readInt();
            this.routerMap = SeqRouterMapHelper.read(param1);
            return;
        }// end function

    }
}
